package com.zhentao.Exception.enums;

public enum ApiServiceExceptionEnum implements BaseExceptionEnum{

    USER_NOT_EXIST(400,"用户不存在"),
    USER_EXIST(400,"用户已存在"),
    USER_NOT_LOGIN(400,"用户未登录"),
    USER_NOT_AUTH(400,"用户未授权"),
    USER_NOT_ADMIN(400,"用户不是管理员"),
    USER_NOT_EXIST_OR_NOT_AUTH(400,"用户不存在或未授权"),
    USER_NOT_EXIST_OR_NOT_LOGIN(400,"用户不存在或未登录");

     ApiServiceExceptionEnum(Integer status,String message) {

    	 this.status=status;
         this.message=message;
    }
     private Integer status;
     private String message;


    @Override
    public Integer getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
